package com.stox.services.data.downloader.bse.ws;

import java.util.Calendar;
import java.util.GregorianCalendar;

import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;



public class Main {

	public static void main(String[] args) throws DatatypeConfigurationException {		
		BSEChartWebService service = new BSEChartWebService();
		BSEChartWebServiceSoap soap = service.getBSEChartWebServiceSoap();
		
		
		Calendar calendar = Calendar.getInstance();
		calendar.add(Calendar.DATE, -5);
		Values values = soap.getIntradayDataDatabase(66, 500290, DatatypeFactory.newInstance().newXMLGregorianCalendar((GregorianCalendar)calendar));
		System.out.println(values.s+values.dataInputValues.arrayOfFloat+values.dataInputValuesdate._int);
	}
	
}
